#include "dstack.h"
#include <stdio.h>

int main(void)
{int data,data1,i;
 stack p=create();
 for(i=6;i>=1;i--)
	push_back(p,i);
 printf("Pushed 5 elements at back\n");
 for(i=5;i>=1;i--)
	push_front(p,i);
 printf("Pushed 5 elements at front\n");
 front(p,&data);
 back(p,&data1);
 printf("front: %d back: %d\n",data,data1);
 pop_front(p);
 printf("poped element from the front\n");
 pop_back(p);
 printf("poped element from the back\n");
 front(p,&data);
 back(p,&data1);
 printf("front: %d back: %d\n",data,data1);
 clear(p);
 printf("Stack cleared\n");
 delete(p);
 printf("Stack deleted\n");
 return 0;
}
